import axios from 'axios'

// const request = axios.create(({
//     timeout: 45000,
// }))

export async function requestAtom(path: string, lang = 'en', page = 1) {
    try {
        const result = await axios.get(path, {
            params: {
                lang,
                page
            },
            timeout: 30000
        })
        console.log(page)
        return result
    } catch (e) {
        console.log('分页获取已取消')
        throw e
    }
}
